/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
}

.app-container {
  width: 750px;
  height: 1624px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* 顶部导航栏 */
.top-nav {
  width: 750px;
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 42px 0 42px;
}

.logo-section {
  width: 108px;
  height: 42px;
  border-radius: 64px;
  display: flex;
  align-items: flex-end;
}

.logo {
  width: 56.86px;
  height: 22.18px;
  margin-left: 24.90px;
  margin-bottom: 9.48px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10.06px;
  margin-top: 34.66px;
}

.nav-icons img {
  height: 21px;
}

/* 搜索栏 */
.search-container {
  width: 686px;
  margin: 16px 32px 0 32px;
}

.search-box {
  width: 100%;
  height: 80px;
  background-color: #f5f5f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 32px 0 24px;
}

.search-icon {
  width: 48px;
  height: 48px;
}

.search-text {
  margin-left: 24px;
  font-size: 32px;
  color: #828282;
  font-weight: 400;
}

/* 分类标签 */
.category-tabs {
  width: 718px;
  height: 64px;
  display: flex;
  align-items: center;
  margin: 16px 0 0 32px;
  gap: 16px;
}

.tab {
  height: 64px;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: #000;
  color: #fff;
}

.tab img {
  width: 36px;
  height: 36px;
  margin-right: 8px;
}

.tab span {
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
}

/* Banner区域 */
.banner-section {
  width: 686px;
  height: 272px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin: 32px 0 0 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 40px;
}

.banner-title {
  font-size: 40px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.8px;
  margin-bottom: 82px;
}

.banner-indicators {
  display: flex;
  gap: 10px;
  align-self: flex-end;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.indicator.active {
  background-color: #fff;
}

/* 产品区域 */
.product-section {
  width: 750px;
  margin-top: 32px;
}

.section-header {
  width: 750px;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  justify-content: space-between;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.64px;
}

.arrow-button {
  width: 40px;
  height: 40px;
  background: url('assets/ad538bb6-77a4-42b3-a6cd-6a97067a0adb.png') no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.arrow-button img {
  width: 11.70px;
  height: 20.08px;
}

/* 产品网格 */
.product-grid {
  width: 750px;
  height: 240px;
  display: flex;
  align-items: center;
  padding: 16px 32px;
  gap: 48px;
  overflow-x: auto;
}

.product-card {
  width: 152px;
  height: 208px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.product-card img {
  width: 152px;
  height: 152px;
  border-radius: 8px;
}

.product-title {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 500;
  color: #161823;
  text-align: center;
  letter-spacing: 0.28px;
}

/* 大产品网格 */
.product-grid-large {
  width: 750px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
  overflow-x: auto;
}

.product-card-large {
  width: 296px;
  height: 446px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.product-card-large img {
  width: 296px;
  height: 296px;
  border-radius: 8px;
}

.product-card-small {
  width: 78px;
  height: 446px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.product-card-small img {
  width: 78px;
  height: 296px;
  border-radius: 8px;
}

.product-info {
  width: 296px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.brand {
  font-size: 24px;
  color: #000;
  font-weight: 400;
}

.product-name {
  font-size: 28px;
  color: #000;
  font-weight: 400;
  margin-top: 4px;
}

.price {
  font-size: 32px;
  color: #000;
  font-weight: 500;
  margin-top: 4px;
}

/* 小产品网格 */
.product-grid-small {
  width: 750px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
  overflow-x: auto;
}

.product-grid-small img {
  width: 192px;
  height: 192px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 750px;
  height: 156px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-nav .nav-item {
  width: 152px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 52px 16px 52px;
}

.bottom-nav .nav-item img {
  width: 48px;
  height: 48px;
}

.nav-indicator {
  width: 268px;
  height: 10px;
  background-color: #000;
  border-radius: 200px;
  margin: 0 240px 16px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-container {
    width: 100%;
    max-width: 750px;
  }
  
  .top-nav,
  .search-container,
  .category-tabs,
  .product-section,
  .bottom-nav {
    width: 100%;
  }
  
  .product-grid,
  .product-grid-large,
  .product-grid-small {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .product-grid::-webkit-scrollbar,
  .product-grid-large::-webkit-scrollbar,
  .product-grid-small::-webkit-scrollbar {
    display: none;
  }
}

/* 动画效果 */
.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card:hover,
.product-card-large:hover,
.product-card-small:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.arrow-button:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
